home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / xmltests.py < prev    next >
Text File  |  2005-10-18  |  433b  |  20 lines

  1. # Convenience test module to run all of the XML-related tests in the
  2. # standard library.
  3.  
  4. import sys
  5. import test.test_support
  6.  
  7. test.test_support.verbose = 0
  8.  
  9. def runtest(name):
  10.     __import__(name)
  11.     module = sys.modules[name]
  12.     if hasattr(module, "test_main"):
  13.         module.test_main()
  14.  
  15. runtest("test.test_minidom")
  16. runtest("test.test_pyexpat")
  17. runtest("test.test_sax")
  18. runtest("test.test_xmllib")
  19. runtest("test.test_xmlrpc")
  20.